.class Lcom/example/m6wmr/MyuserActivity$1$1;
.super Ljava/lang/Object;
.source "MyuserActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/MyuserActivity$1;->onClick(Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/example/m6wmr/MyuserActivity$1;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/MyuserActivity$1;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/MyuserActivity$1$1;->this$1:Lcom/example/m6wmr/MyuserActivity$1;

    .line 139
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 7
    .param p1, "dialog"    # Landroid/content/DialogInterface;
    .param p2, "item"    # I

    .prologue
    const/4 v6, 0x1

    .line 142
    if-ne p2, v6, :cond_0

    .line 146
    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.media.action.IMAGE_CAPTURE"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 147
    .local v1, "intent":Landroid/content/Intent;
    const-string v2, "output"

    new-instance v3, Ljava/io/File;

    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v4

    const-string v5, "temp.jpg"

    invoke-direct {v3, v4, v5}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    invoke-static {v3}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 148
    iget-object v2, p0, Lcom/example/m6wmr/MyuserActivity$1$1;->this$1:Lcom/example/m6wmr/MyuserActivity$1;

    # getter for: Lcom/example/m6wmr/MyuserActivity$1;->this$0:Lcom/example/m6wmr/MyuserActivity;
    invoke-static {v2}, Lcom/example/m6wmr/MyuserActivity$1;->access$0(Lcom/example/m6wmr/MyuserActivity$1;)Lcom/example/m6wmr/MyuserActivity;

    move-result-object v2

    invoke-virtual {v2, v1, v6}, Lcom/example/m6wmr/MyuserActivity;->startActivityForResult(Landroid/content/Intent;I)V

    .line 157
    .end local v1    # "intent":Landroid/content/Intent;
    :goto_0
    return-void

    .line 149
    :cond_0
    if-nez p2, :cond_1

    .line 150
    new-instance v0, Landroid/content/Intent;

    const-string v2, "android.intent.action.GET_CONTENT"

    invoke-direct {v0, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 151
    .local v0, "getImage":Landroid/content/Intent;
    const-string v2, "android.intent.category.OPENABLE"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    .line 152
    const-string v2, "image/jpg"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 153
    iget-object v2, p0, Lcom/example/m6wmr/MyuserActivity$1$1;->this$1:Lcom/example/m6wmr/MyuserActivity$1;

    # getter for: Lcom/example/m6wmr/MyuserActivity$1;->this$0:Lcom/example/m6wmr/MyuserActivity;
    invoke-static {v2}, Lcom/example/m6wmr/MyuserActivity$1;->access$0(Lcom/example/m6wmr/MyuserActivity$1;)Lcom/example/m6wmr/MyuserActivity;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v2, v0, v3}, Lcom/example/m6wmr/MyuserActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0

    .line 155
    .end local v0    # "getImage":Landroid/content/Intent;
    :cond_1
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    goto :goto_0
.end method
